<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="utf-8">
	<title>添加教师</title>
	<link rel="stylesheet" href="../layui/css/layui.css"/>
	<link rel="stylesheet" href="../css/teacherManagement.css"/>
</head>
<body>
	<div class="layui-tab layui-tab-brief addtea-con" lay-filter="docDemoTabBrief">
	  <ul class="layui-tab-title">
	    <li class="layui-this">教师信息添加</li>
	    <li>教师批量导入</li>
	  </ul>
	  <div class="layui-tab-content" style="height: 100px;">
    	<div class="layui-tab-item layui-show">
			<div class="from-con">
				<div style="width: 90%;">
				<form class="layui-form" action="" id="formaddtea">
					<div class="layui-row">
						<div class="layui-col-xs6">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">真实姓名</label>
							    <div class="layui-input-block">
							      <input id="realname" type="text" style="float: left;position: relative;" name="realname" lay-verify="required" placeholder="请输入真实姓名" class="layui-input" autocomplete="off">
							      <i class="required">*</i>
							    </div>
						  	</div>
					  	</div>
					    <div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">联系电话</label>
							    <div class="layui-input-block">
							    	<input id="phone" name="phone" type="tel" style="float: left;position: relative;" class="layui-input" placeholder="请输入联系电话" lay-verify="required|phone" autocomplete="off">
							    	<i class="required">*</i>
							    </div>
							</div>
						</div>
				    </div>
				    <div class="layui-row">
				    	<div class="layui-col-xs6">
						  	<div class="layui-form-item">
							    <label class="layui-form-label">性别</label>
							    <div class="layui-input-block" name="sex">
							      <input type="radio" name="sex" value="男" title="男" checked>
							      <input type="radio" name="sex" value="女" title="女">
							    </div>
							</div>
						</div>
						
					    <div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">E-mail</label>
							    <div class="layui-input-block">
							    	<input id="email" name="email" type="email" style="float: left;position: relative;" class="layui-input" placeholder="请输入E-mail" lay-verify="email" autocomplete="off">
							    	<i class="required">*</i>
							    </div>
							</div>
						</div>
					</div>
				    <div class="layui-row">
						<div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">出生日期</label>
							    <div class="layui-input-block">
							    	<input id="birthday" name="birthday" type="text" style="float: left;position: relative;" class="layui-input" placeholder="yyyy-MM-dd" autocomplete="off">
							    </div>
							</div>
						</div>
					    <div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">固定电话</label>
							    <div class="layui-input-block">
							    	<input id="tell" name="tell" type="tel" class="layui-input" placeholder="请输入固定电话" autocomplete="off">
							    </div>
							</div>
						</div>
					</div>
				    <div class="layui-row">
						<div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">单位电话</label>
							    <div class="layui-input-block">
							    	<input id="worktel" name="worktel" type="tel" class="layui-input" placeholder="请输入单位电话" autocomplete="off">
							    </div>
							</div>
						</div>
					    <div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">毕业院校</label>
							    <div class="layui-input-block">
							    	<input id="graduateschool" name="graduateschool" type="text" class="layui-input" placeholder="请输入毕业院校" autocomplete="off">
							    </div>
							</div>
						</div>
					</div>
				    <div class="layui-row">
						<div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">入职时间</label>
							    <div class="layui-input-block">
							    	<input id="entrytime" name="entrytime" type="text" class="layui-input" placeholder="请选择入职时间" autocomplete="off">
							    </div>
							</div>
						</div>
						<div class="layui-col-xs6">
						    <div class="layui-form-item">
							    <label class="layui-form-label">学校类型</label>
							    <div class="layui-input-block">
							      	<select name="selschooltype" id="selschooltype" lay-filter="selschooltype" lay-event="selschooltype">
							        	<option value="00">请选择学校类型</option>
							    	</select>	
							    </div>
							</div>
						</div>
					</div>
				    <div class="layui-row">
				    	<div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">职务</label>
							    <div class="layui-input-block">
							    	<input id="post" name="post" type="text" class="layui-input" placeholder="请输入职务" autocomplete="off">
							    </div>
							</div>
						</div>				
					    <div class="layui-col-xs6">
					    	<div class="layui-form-item">
							    <label class="layui-form-label">所属学校</label>
							    <div class="layui-input-block">
							      	<i class="required">*</i>
							      	<select name="selschool" id="selschool" lay-filter="selschool" lay-event="selschool" lay-verify="required">
							        	<option value="00">请选择所属学校</option>
							    	</select>
							    </div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">家庭地址</label>
							    <div class="layui-input-block">
							    	<input id="address" name="address" type="text" class="layui-input" placeholder="请输入家庭地址" autocomplete="off">
							    </div>
							</div>
						</div>
					    <div class="layui-col-xs6">
							<div class="layui-form-item">
							    <label class="layui-form-label">选择角色</label>
							    <div class="layui-input-block">
							      <i class="required">*</i>
							      <select name="userType" id="userType" style="float: left;position: relative;" lay-verify="required">
							        <option value="00">请选择角色</option>
							      </select>
							    </div>
							</div>
						</div>
					</div>
				  	<div class="layui-form-item">
					    <div class="layui-input-block">
					      <button type="button" id="addTeacher" lay-submit="" lay-filter="addTeacher" class="layui-btn layui-btn-normal" style="float: right;"> 保  存 </button>
					    </div>
				  	</div>
				</form>
				</div>
			</div>
		</div>
		
		<div class="importTeacher layui-tab-item">
			<div class="layui-block importTeacher-con">
				<div class="layui-form-item">
					<form class="layui-form" action="">
						<div class="layui-input-inline">
						    <select name="stage" id="stage" lay-filter="stage">
						    	<option value=''>请选择阶段</option>
							</select>
						</div>
						<div class="layui-input-inline">
						    <select name="school" id="school" lay-filter="school">
						    	<option value=''>请选择学校</option>
							</select>
						</div>
						<button type="button" class="layui-btn leftbtn" id="uploadbtn">选择Excel文件</button>
						<button type="button" class="layui-btn leftbtn" id="test4" style="display: none;">
							<i class="layui-icon"></i>选择Excel文件
						</button>
						<!-- <a href="/upload/templateDownload/教师信息表.xls" class="layui-btn layui-btn-primary rightbtn">下载模板</a> -->
						<button type="button" class="layui-btn layui-btn-primary rightbtn" lay-submit="" lay-filter="downloadteacher" id="downloadteacher">下载模板</button>
						<button type="button" class="layui-btn savebtn" lay-submit="" lay-filter="saveTeaList" id="saveTeaList">保存</button>
					</form>
				</div>
			</div>
			<table class="layui-hide" id="teacher"></table>
			<!-- <div class="model">
				<script type="text/html" id="toolbarDemo">
					<label>导入失败的数据</label>
				</script>
				<table class="layui-hide" id="teacherData"></table>
			</div> -->
		</div>
	  </div>
	</div>
	
	<script src="../js/jquery-3.3.1.js"></script>
	<script src="../layui/layui.all.js"></script>
	<script src="../js/until/loading.js"></script>
	<script src="../js/teacherManagement/addTeacher.js"></script>
</body>
</html>